 

package com.zdkj.subway.stm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zdkj.subway.stm.dto.in.CommomConfirmInfoDTO;
import com.zdkj.subway.stm.dto.in.SwStMarketingTicketDTO;
import com.zdkj.subway.stm.entity.SwStMarketingTicket;

import java.util.List;

/**
 * 营销车票录入主表
 *
 * @author songtuo
 * @date 2020-07-11 21:43:57
 */
public interface SwStMarketingTicketService extends IService<SwStMarketingTicket> {
    /**
     * 首次新增备用金详情
     * @param stMarketingTicketDTO
     * @return
     */
    boolean saveSwStMarketingTicket(SwStMarketingTicketDTO stMarketingTicketDTO);

    /**
     * 更新备用金详情
     * @param stMarketingTicketDTO
     * @return
     */
    boolean updateStMarketingTicket(SwStMarketingTicketDTO stMarketingTicketDTO);

    /**
     * 级联删除
     * @param id
     * @return
     */
    boolean deleteCascadeById(Integer id);

    /**
     * 查看详情  用于回显预览
     * @param id
     * @return
     */
    SwStMarketingTicketDTO queryDetailsById(Integer id);

    SwStMarketingTicketDTO queryNeedToConfirmData(CommomConfirmInfoDTO confirmInfoDTO);

    boolean confirmData(Integer id);

    /**
     * 营销车票数据录入批量提交
     */
    boolean  updateApprovalStatus(List<Integer> ids, String status);
}
